package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MineExamSituationMapper;
import com.ruoyi.system.domain.MineExamSituation;
import com.ruoyi.system.service.IMineExamSituationService;

/**
 * 考试情况Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-14
 */
@Service
public class MineExamSituationServiceImpl implements IMineExamSituationService 
{
    @Autowired
    private MineExamSituationMapper mineExamSituationMapper;

    /**
     * 查询考试情况
     * 
     * @param examSituationId 考试情况主键
     * @return 考试情况
     */
    @Override
    public MineExamSituation selectMineExamSituationByExamSituationId(Long examSituationId)
    {
        return mineExamSituationMapper.selectMineExamSituationByExamSituationId(examSituationId);
    }

    /**
     * 查询考试情况
     *
     * @param userId 考试情况主键
     * @return 考试情况
     */
    @Override
    public List<MineExamSituation> selectMineExamSituationByUserId(Long userId) {
        return (List<MineExamSituation>) mineExamSituationMapper.selectMineExamSituationByUserId(userId);
    }

    /**
     * 查询考试情况
     *
     * @param examId 考试情况主键
     * @return 考试情况
     */
    @Override
    public List<MineExamSituation> selectMineExamSituationByExamId(Long examId) {
        return mineExamSituationMapper.selectMineExamSituationByExamId(examId);
    }

    /**
     * 查询考试情况列表
     * 
     * @param mineExamSituation 考试情况
     * @return 考试情况
     */
    @Override
    public List<MineExamSituation> selectMineExamSituationList(MineExamSituation mineExamSituation)
    {
        return mineExamSituationMapper.selectMineExamSituationList(mineExamSituation);
    }

    /**
     * 新增考试情况
     * 
     * @param mineExamSituation 考试情况
     * @return 结果
     */
    @Override
    public int insertMineExamSituation(MineExamSituation mineExamSituation)
    {
        return mineExamSituationMapper.insertMineExamSituation(mineExamSituation);
    }

    /**
     * 修改考试情况
     * 
     * @param mineExamSituation 考试情况
     * @return 结果
     */
    @Override
    public int updateMineExamSituation(MineExamSituation mineExamSituation)
    {
        return mineExamSituationMapper.updateMineExamSituation(mineExamSituation);
    }

    /**
     * 批量删除考试情况
     * 
     * @param examSituationIds 需要删除的考试情况主键
     * @return 结果
     */
    @Override
    public int deleteMineExamSituationByExamSituationIds(Long[] examSituationIds)
    {
        return mineExamSituationMapper.deleteMineExamSituationByExamSituationIds(examSituationIds);
    }

    /**
     * 删除考试情况信息
     * 
     * @param examSituationId 考试情况主键
     * @return 结果
     */
    @Override
    public int deleteMineExamSituationByExamSituationId(Long examSituationId)
    {
        return mineExamSituationMapper.deleteMineExamSituationByExamSituationId(examSituationId);
    }


}
